package world.liquor.service;

import java.sql.SQLException;
import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import world.liquor.dao.myBeerDAO;
import world.liquor.domain.BeerInfo;

@Service
public class myBeerServiceImpl implements myBeerService {
	
	@Autowired
	private myBeerDAO dao;

	public void setDao(myBeerDAO dao) {
		this.dao = dao;
	}
	public myBeerServiceImpl() {
	}
	public myBeerServiceImpl(myBeerDAO dao) {
		this.dao = dao;
	}
	@Override
	public ArrayList<BeerInfo> selectBeerByIdNotAssessment(String memberId) throws SQLException {
		return dao.selectBeerByIdNotAssessment(memberId);
	}
	@Override
	public ArrayList<BeerInfo> selectBeerByIdAssessment(String memberId) throws SQLException {
		return dao.selectBeerByIdAssessment(memberId);
	}


}
